package com.sh.data.engine.application.model.request.normalization;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

/**
 * @author : changkong
 * @date : 2022/1/7
 */
@Data
@Builder
@Schema
@NoArgsConstructor
@AllArgsConstructor
public class DeleteFactRowRequest {

    @NotNull
    @Schema(description = "主题id", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long themeId;

    @NotNull
    @Schema(description = "要删除的事实行id", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long factRowId;

    @NotNull
    @Range(min = 0, max = Integer.MAX_VALUE)
    @Schema(description = "当前索引行", requiredMode = Schema.RequiredMode.REQUIRED, name = "要删除的行")
    private Integer curRowIndex;
}
